package ltd.newbee.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.io.Serializable;
import java.util.Date;

/**
 * @description:
 * @author: qzx
 * @date: 2022-08-12 15:39
 * @version: 1.0
 */
@Data
@TableName(value = "admin_log_operate")
public class AdminLogOperate implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField(value = "user_id", jdbcType = JdbcType.BIGINT)
    private Long userId;

    @TableField(value = "title", jdbcType = JdbcType.VARCHAR)
    private String title;

    @TableField(value = "class_name", jdbcType = JdbcType.VARCHAR)
    private String className;

    @TableField(value = "method_name", jdbcType = JdbcType.VARCHAR)
    private String methodName;

    @TableField(value = "request_method", jdbcType = JdbcType.VARCHAR)
    private String requestMethod;

    @TableField(value = "request_params")
    private String requestParams;

    @TableField(value = "json_result")
    private String jsonResult;

    @TableField(value = "error_msg")
    private String errorMsg;

    @TableField(value = "ip", jdbcType = JdbcType.VARCHAR)
    private String ip;

    @TableField(value = "address", jdbcType = JdbcType.VARCHAR)
    private String address;

    @TableField(value = "start_time")
    private Date startTime;

    @TableField(value = "end_time")
    private Date endTime;
}
